<?php
/**
 * User: lie
 * Date: 2020-11-05 20:12
 * description: for 是三元运算符
 */
    for ($i = 0; $i<=9; $i++){
        if ($i % 2 ==0){
            echo $i."是偶数";
        } else {
            echo $i."是奇数";
        }
        echo "<br>";
    }